﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E35 RID: 3637
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ReviveRogueAvatarCsReq : IMessage<ReviveRogueAvatarCsReq>, IMessage, IEquatable<ReviveRogueAvatarCsReq>, IDeepCloneable<ReviveRogueAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17002E32 RID: 11826
		// (get) Token: 0x0600A342 RID: 41794 RVA: 0x001B6B37 File Offset: 0x001B4D37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ReviveRogueAvatarCsReq> Parser
		{
			get
			{
				return ReviveRogueAvatarCsReq._parser;
			}
		}

		// Token: 0x17002E33 RID: 11827
		// (get) Token: 0x0600A343 RID: 41795 RVA: 0x001B6B3E File Offset: 0x001B4D3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ReviveRogueAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E34 RID: 11828
		// (get) Token: 0x0600A344 RID: 41796 RVA: 0x001B6B50 File Offset: 0x001B4D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ReviveRogueAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x0600A345 RID: 41797 RVA: 0x001B6B57 File Offset: 0x001B4D57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarCsReq()
		{
		}

		// Token: 0x0600A346 RID: 41798 RVA: 0x001B6B78 File Offset: 0x001B4D78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarCsReq(ReviveRogueAvatarCsReq other) : this()
		{
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.baseAvatarId_ = other.baseAvatarId_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A347 RID: 41799 RVA: 0x001B6BD6 File Offset: 0x001B4DD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarCsReq Clone()
		{
			return new ReviveRogueAvatarCsReq(this);
		}

		// Token: 0x17002E35 RID: 11829
		// (get) Token: 0x0600A348 RID: 41800 RVA: 0x001B6BDE File Offset: 0x001B4DDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x17002E36 RID: 11830
		// (get) Token: 0x0600A349 RID: 41801 RVA: 0x001B6BE6 File Offset: 0x001B4DE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x17002E37 RID: 11831
		// (get) Token: 0x0600A34A RID: 41802 RVA: 0x001B6BEE File Offset: 0x001B4DEE
		// (set) Token: 0x0600A34B RID: 41803 RVA: 0x001B6BF6 File Offset: 0x001B4DF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x17002E38 RID: 11832
		// (get) Token: 0x0600A34C RID: 41804 RVA: 0x001B6BFF File Offset: 0x001B4DFF
		// (set) Token: 0x0600A34D RID: 41805 RVA: 0x001B6C07 File Offset: 0x001B4E07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x0600A34E RID: 41806 RVA: 0x001B6C10 File Offset: 0x001B4E10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ReviveRogueAvatarCsReq);
		}

		// Token: 0x0600A34F RID: 41807 RVA: 0x001B6C20 File Offset: 0x001B4E20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ReviveRogueAvatarCsReq other)
		{
			return other != null && (other == this || (this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.BaseAvatarId == other.BaseAvatarId && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A350 RID: 41808 RVA: 0x001B6C94 File Offset: 0x001B4E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.trialAvatarIdList_.GetHashCode();
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A351 RID: 41809 RVA: 0x001B6D08 File Offset: 0x001B4F08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A352 RID: 41810 RVA: 0x001B6D10 File Offset: 0x001B4F10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A353 RID: 41811 RVA: 0x001B6D1C File Offset: 0x001B4F1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.BaseAvatarId);
			}
			this.trialAvatarIdList_.WriteTo(ref output, ReviveRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
			this.baseAvatarIdList_.WriteTo(ref output, ReviveRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A354 RID: 41812 RVA: 0x001B6D98 File Offset: 0x001B4F98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.trialAvatarIdList_.CalculateSize(ReviveRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
			num += this.baseAvatarIdList_.CalculateSize(ReviveRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A355 RID: 41813 RVA: 0x001B6E14 File Offset: 0x001B5014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ReviveRogueAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A356 RID: 41814 RVA: 0x001B6E86 File Offset: 0x001B5086
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A357 RID: 41815 RVA: 0x001B6E90 File Offset: 0x001B5090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 96U)
				{
					if (num == 64U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						goto IL_57;
					}
				}
				else
				{
					if (num == 98U)
					{
						goto IL_57;
					}
					if (num == 104U || num == 106U)
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, ReviveRogueAvatarCsReq._repeated_baseAvatarIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_57:
				this.trialAvatarIdList_.AddEntriesFrom(ref input, ReviveRogueAvatarCsReq._repeated_trialAvatarIdList_codec);
			}
		}

		// Token: 0x04004284 RID: 17028
		private static readonly MessageParser<ReviveRogueAvatarCsReq> _parser = new MessageParser<ReviveRogueAvatarCsReq>(() => new ReviveRogueAvatarCsReq());

		// Token: 0x04004285 RID: 17029
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004286 RID: 17030
		public const int TrialAvatarIdListFieldNumber = 12;

		// Token: 0x04004287 RID: 17031
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x04004288 RID: 17032
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04004289 RID: 17033
		public const int BaseAvatarIdListFieldNumber = 13;

		// Token: 0x0400428A RID: 17034
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x0400428B RID: 17035
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x0400428C RID: 17036
		public const int BaseAvatarIdFieldNumber = 9;

		// Token: 0x0400428D RID: 17037
		private uint baseAvatarId_;

		// Token: 0x0400428E RID: 17038
		public const int MonsterIdFieldNumber = 8;

		// Token: 0x0400428F RID: 17039
		private uint monsterId_;
	}
}
